<%- @page_title = _("View Projects") -%>
<h2><%= @page_title %></h2>
<%- unless @projects.empty? -%>
  <ul>
    <%- @projects.each do |p| -%>
      <li><%= link_to(h(p.title), project_path(p)) %></li>
    <%- end -%>
  </ul>
<%- else -%>
  <p><%= _('No project has been added, yet.') %></p>
<%- end -%>
<%- if @logged_user.is_teacher? -%>
  <hr />
  <%= link_to(_('Add a new project'), new_project_path) %>
  <hr />
  <%= link_to(_("View all users"), users_url) %>
<%- end -%>